﻿using System.ComponentModel.DataAnnotations;

namespace AvoidForgettingApi.Entities.Models.User
{
    public class AddUserRequest
    {
        /// <summary>
        /// 登录名
        /// </summary>
        [Required(ErrorMessage = "登录名不能为空")]
        public string Code { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [Required(ErrorMessage = "用户名不能为空")]
        public string Name { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "用户凭证不能为空")]
        public string Credential { get; set; }

        /// <summary>
        /// 电话号码
        /// </summary>
        [Required(ErrorMessage = "Phone不能为空")]
        public string Phone { get; set; } = string.Empty;

        /// <summary>
        /// 部门编码
        /// </summary>
        public string OrgCode { get; set; } = string.Empty;

        /// <summary>
        /// 是否是管理员
        /// </summary>
        public bool IsAdmin { get; set; } = false;
	}
}
